﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="workflowSettingView.aspx.cs" Inherits="WEB.workflow.workflowSettingView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style4
        {
            width: 570px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    查看工作流
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                &nbsp;模板状态：<asp:DropDownList ID="ddlSelectState" runat="server" 
                    AutoPostBack="True" 
                    onselectedindexchanged="ddlSelectState_SelectedIndexChanged" Width="100px">
                    <asp:ListItem Value="3">全部</asp:ListItem>
                    <asp:ListItem Value="0">保存</asp:ListItem>
                    <asp:ListItem Value="1">启用</asp:ListItem>
                    <asp:ListItem Value="2">禁用</asp:ListItem>
                </asp:DropDownList>
&nbsp;
                选择工作流模板：<asp:DropDownList ID="ddlSelect" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged"
                    Width="150px">
                </asp:DropDownList>
            &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvWorkflowview" runat="server" BackColor="White" BorderColor="#DEDFDE"
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" CssClass="distance" ForeColor="Black"
                    GridLines="Vertical" Width="900px" AutoGenerateColumns="False" 
                    onrowdatabound="gvWorkflowview_RowDataBound" DataKeyNames="infoWKID" 
                    onrowcancelingedit="gvWorkflowview_RowCancelingEdit" 
                    onrowdeleting="gvWorkflowview_RowDeleting" 
                    onrowediting="gvWorkflowview_RowEditing" 
                    onrowupdating="gvWorkflowview_RowUpdating">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="stepID" HeaderText="步骤号">
                            <HeaderStyle Width="50px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="busType" HeaderText="环节编号">
                            <HeaderStyle Width="50px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="环节名称 ">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlBusID" runat="server" Height="20px" Width="120px">
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="处理岗位编号">
                            <ItemTemplate>
                                    <asp:DropDownList ID="ddlJobNo" runat="server" Height="20px" Width="200px">
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                        <asp:BoundField DataField="doTimeLimit" HeaderText="处理时限(小时)" />
                        <asp:BoundField DataField="yellowBefore" HeaderText="预警时限(小时)" />
                        <asp:BoundField DataField="remark" HeaderText="备注">
                            <HeaderStyle Width="200px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlgvState" runat="server">
                                    <asp:ListItem Value="0">使用</asp:ListItem>
                                    <asp:ListItem Value="1">禁用</asp:ListItem>
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ButtonType="Button" ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" >
                        <ControlStyle Font-Bold="True" Font-Italic="False" Font-Underline="True" />
                        <ItemStyle ForeColor="#3333FF" HorizontalAlign="Center" Width="40px" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
                <asp:Panel ID="panelState" runat="server">
                    <table class="distance" style="width: 900px; height: 53px;">
                        <tr>
                            <td class="style4">
                                <asp:Panel ID="panelUpdateState" runat="server">
                                    &nbsp;模版名：<asp:TextBox ID="tbMasterName" runat="server" Width="85px"></asp:TextBox>
                                    &nbsp;
                                    <asp:Button ID="btnUpateState0" runat="server" CssClass="Submit_yellowbig" 
                                        onclick="btnUpateState_Click" Text="更新模板" />
                                    &nbsp;当前状态：<asp:DropDownList ID="ddlStates" runat="server" Height="20px" 
                                        Width="104px">
                                    </asp:DropDownList>
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="btnUpateState1" runat="server" CssClass="Submit_yellowbig" 
                                        onclick="btnUpateState1_Click" Text="更新状态" />
                                </asp:Panel>
                        
                            </td>
                            <td>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnCopy" runat="server" CssClass="Submit_yellowbig" 
                                    onclick="btnCopy_Click" Text="复制模板" />
                                &nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnDelete" runat="server" CssClass="Submit_yellowbig" OnClientClick="return confirm('确认删除该模板？')"
                                onclick="btnDelete_Click" Text="删除模板" />
                                &nbsp;
                                <input id="return" class="Submit_yellow" 
                                    onclick="window.history.go(-1)" type="button" value="返回" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
